package com.zuoyy.modules.common.dbcomment;

import com.zuoyy.common.vo.JsonResponse;
import com.zuoyy.modules.common.dbcomment.service.JpacommentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("dev/sys")
public class SetCcommentController {


    @Resource
    private JpacommentService jpacommentService;

    /**
     * 更新全库字段注释
     */
    @GetMapping("alterAllTableAndColumn")
    public JsonResponse alterAllTableAndColumn() {
        jpacommentService.alterAllTableAndColumn();
        return JsonResponse.success();
    }

}
